<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminIndex/index')}">本站用户</a></li>
        <li class="active"><a >编辑分类</a></li>
        <!--<li class="active"><a>编辑分类</a></li>-->
    </ul>
    <div class="row margin-top-20">
        <div class="col-md-2">
            <div class="list-group">
                <a class="list-group-item" href="#A" data-toggle="tab">用户信息</a>

            </div>
        </div>
        <div class="col-md-6">
            <form class="js-ajax-form" action="{:url('AdminIndex/editPost')}" method="post">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-name"><span class="form-required">*</span>用户手机</label>
                            <div>
                                <input type="text" class="form-control" id="input-name" name="user_login" value="{$user.user_login}" disabled="disabled">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name">用户密码</label>
                            <div>
                                <input type="password" class="form-control" id="input-alias" name="user_pass"
                                       value="{$user.user_pass}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="user_nickname">用户昵称</label>
                            <div>
                                <input type="text" class="form-control" id="user_nickname" name="user_nickname" value="{$user.user_nickname}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="user_nickname">用户头像</label>
                            <div>
                                <input type="hidden" name="avatar" class="form-control" value="{$user.avatar|default=''}" id="js-thumbnail-input">
                                <div>
                                    <a href="javascript:uploadOneImage('图片上传','#js-thumbnail-input');">
                                        <if condition="empty($user.avatar)">
                                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                                 id="js-thumbnail-input-preview"
                                                 width="135" style="cursor: pointer"/>
                                            <else/>
                                            <img src="{:cmf_get_image_preview_url($user.avatar)}"
                                                 id="js-thumbnail-input-preview"
                                            width="135" style="cursor: pointer"/>
                                        </if>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
                <div class="form-group">
                    <input type="hidden" name="id" value="{$user.id}">
                    <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">{:lang('SAVE')}
                    </button>
                    <a class="btn btn-default" href="{:url('AdminIndex/index')}">{:lang('BACK')}</a>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script>

</script>
</body>
</html>